package cn.edu.neusoft.mall.service.impl;

import cn.edu.neusoft.mall.Dao.impl.petDaoImpl;
import cn.edu.neusoft.mall.Dao.petDao;
import cn.edu.neusoft.mall.entity.Pet;
import cn.edu.neusoft.mall.service.petService;

import java.util.List;

public class petServiceimpl implements petService {
    petDao petDao = new petDaoImpl();
    @Override
    public List<Pet> getpetList() {
        return petDao.getpetList();
    }

    @Override
    public Pet getdogsde(int query_number) {
        return petDao.getdogsde(query_number);
    }

    @Override
    public List<Pet> getmoredogspage(int page) {
        return petDao.getmoredogspage(page);
    }
    @Override
    public List<Pet> getmoredogs() {
        return petDao.getmoredogs();
    }
    @Override
    public List<Pet> getmorecatspage(int page) {
        return petDao.getmorecatspage(page);
    }
    @Override
    public List<Pet> getmorecats() {
        return petDao.getmorecats();
    }
    @Override
    public Pet getcatsde(int query_number) {
        return petDao.getcatsde(query_number);
    }

    @Override
    public List<Pet> getLovepetdog1(int userid) {
        return petDao.getLovepetdog(userid);
    }

    @Override
    public List<Pet> getLovepetcat1(int userid) {
        return petDao.getLovepetcat(userid);
    }

    @Override
    public List<Pet> getsubpetdog1(int userid) {
        return petDao.getsubpetdog(userid);
    }

    @Override
    public List<Pet> getsubpetcat1(int userid) {
        return petDao.getsubpetcat(userid);
    }

    @Override
    public int setsubDog(String petid) {
        return petDao.setPetdogsub(petid);
    }

    @Override
    public int setsubcat(String petid) {
        return petDao.setPetcatsub(petid);
    }
}
